<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
        <div class="panel">
            <form action="#" th:action="@{/reg}" method="post">
                <div class="form-group">
                    <label for="uname">用户名：</label>
                    <input required minlength="3" maxlength="9" type="text" placeholder="请输入用户名" name="username" id="uname"/>

                </div>
                <div class="form-group">
                    <label for="upwd">密码：</label>
                    <input type="password" minlength="6" maxlength="12" placeholder="请输入密码" name="password" id="upwd"/>

                </div>
                <div class="form-group">
                    <label for="upwd2">确认密码：</label>
                    <input type="password" placeholder="再次输入密码" id="upwd2"/>
                </div>
                <div class="form-group">
                  <label for="uemail">邮箱：</label>
                  <input required type="email" placeholder="请输入邮箱地址" name="email" id="uemail"/>
                </div>
                <div>
                    <input type="radio" name="role" value="1">用户
                </div>
                <div>
                    <div class="form-group">
                        <label></label>
                        <input type="submit" value="提交注册信息" id="btn_reg" style="cursor:pointer;" />
                    </div>
                </div>
            </form>
            <p th:text="${msg}"></p>
        </div>
</body>
</html>

